package com.anjubao.parking.municipal.roadside.form;

import cn.hutool.json.JSONArray;
import lombok.Data;

import java.util.List;

/**
 * 停车数据上报
 * @author zhangyunbo
 * @date 2019/6/13 15:16
 */
@Data
public class ImgreportForm {
    /*
    * {
    "cmd":"imgreport" ,
    "picnum": 2,
    "license":"浙 A12345",
    * "direction": 0,
    "type":0,
    "colortype":0,
    "confidence":0,
    "confidenceGroup":[ 0,0,0,...],
    "newlicense": "浙 A12345"
    * "newtype":0,
    "newcolortype":0,
    "newconfidence":0,
    "newconfidenceGroup":[ 0,0,0,...],
    "devid":"123456789001",
    "id":"123456789012",
    "devtype":"xxx",
    "picdata":[{
    "location":{
    "RECT":{
    "left":400,
    "top":300,
    "right":560,
    "bottom":60
    }
    },
    "timeStamp":{
    "sec":1426625222，
    "usec":622802
    }，
    "imageFile":"xxx",
    "imageFileLen":xxx
    },
    {
    "location":{
    "RECT":{
    "left":400,
    "top":300,
    "right":560,
    "bottom":60
    }
    },
    "timeStamp":{
    "sec":1426625222，
    "usec":622802
    }，
    "imageFile":"xxx",
    "imageFileLen":xxx
    },{
    "location":
    {
    "RECT":
    {
    "left":400, "top":300, "right":560, "bottom":60
    }
    },"timeStamp":
    {
    "sec":1426625222
    ，
    "usec":622802
    }
    ，
    "imageFile":"xxx
    "
    ,
    "imageFileLen":xxx
    }
    ]
    }*/
    private String cmd;
    private int picnum;//图片数量
    private String license;//车牌号码
    private int direction;//停车状态 0 未知 1 车辆驶入 2 车辆驶离 3 车辆停稳
    /*分三类：
    1. 在停车设备协议中表示车牌类2. 在屏显协议中表示二维码类型
     pay:支付二维码
     app:APP 软件下载二维码
     charge:充电桩二维码
    */
    private int type;
    private String devid;//设备id
    private String id;//泊位id
    private String devtype;//设备类型
    /*{
        "location":{
        "RECT":{
        "left":400,
        "top":300,
        "right":560,
        "bottom":60
        }
        },
        "timeStamp":{
        "sec":1426625222，
        "usec":622802
        }，
        "imageFile":"xxx",
        "imageFileLen":xxx
        }
        }*/
    private JSONArray picdata;//图片数据

}
